package cn.gzjp.modules.dt.dao;

import cn.gzjp.common.persistence.CrudDao;
import cn.gzjp.common.persistence.annotation.MyBatisDao;
import cn.gzjp.modules.dt.entity.Exam;
import cn.gzjp.modules.dt.entity.TestRecord;

/**
 * 考试DAO接口
 * @author zengcp
 * @version 2018-02-24
 */
@MyBatisDao
public interface ExamDao extends CrudDao<Exam> {

    void deleteByOpenid(String openid);

    Integer getCount(Exam exam);


    Exam findByOpenidAndSn(Exam exam);

    Integer getCorrectCount(Exam record);
    Integer getErrorCount(Exam record);
    Integer getTotalCount(Exam record);
	
}